<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    @include('comm/layuiCommStyle')
    @include('comm/comm')
    <title>报表删除</title>
</head>
<body>




<div style="padding: 15px;">
    <blockquote class="layui-elem-quote">
        报表删除
    </blockquote>
</div>

<div class="">
    <blockquote class="layui-elem-quote layui-quote-nm">
        搜索:
    </blockquote>

    <table class="layui-table" lay-skin="line">

        <thead>
        <tr>
            <th><input type="checkbox" name="delid" title="全选" lay-skin="primary" onclick="selsecAll()"></th>

            <th>clickTime</th>
            <th>goodsTitle</th>
            <th>goodsId</th>
            <th>结算金额</th>
            <th>orderStatus</th>
            <th>结算时间</th>
            <th>高佣</th>
            <th>分成</th>
            <th>groupName</th>
            <th>payStatus</th>
            <th>备注</th>
            <th>操作</th>


        </tr>
        </thead>
        <tbody>
        @foreach ($res as $v)
            <tr>
                <td><input type="checkbox" name="ids[]" value="{{ $v->id }}" title="全选" lay-skin="primary"></td>

                <td>{{ $v->clickTime }}</td>
                <td>{{ $v->goodsTitle }}</td>
                <td>{{ $v->goodsId }}</td>
                <td>{{ $v->paymentAmount }}</td>
                <td>{{ $v->orderStatus }}</td>
                <td>{{ $v->settlementTime }}</td>
                <td>{{ $v->commissionRate }}</td>
                <td>{{ $v->commissionAmount }}</td>
                <td>{{ $v->groupName }}</td>
                <th>{{ $v->payStatus }}</th>
                <td>
                    @if (($v->orderStatus=="订单付款") && ($v->payStatus=="0"))
                        交易没有完成！
                    @elseif (($v->orderStatus=="订单结算") && ($v->payStatus=="0"))
                        交易完成,用户可以申请提款！,但是没有提现呢...
                    @elseif (($v->orderStatus=="订单结算") && ($v->payStatus=="1"))
                        交易完成,提现中...但是你没有付款呢，在【报表结算】可以看到
                    @elseif (($v->orderStatus=="订单结算") && ($v->payStatus=="2"))
                        交易完成,用户申请提款,已提款了...
                    @elseif (($v->orderStatus=="订单失效"))
                        订单失效
                    @else
                        异常数据...
                    @endif
                </td>
                <th><button class="layui-btn layui-btn-fluid">删除</button></th>
            </tr>
        @endforeach

        </tbody>
    </table>

    <blockquote class="layui-elem-quote">
        一键删除
    </blockquote>

</div>

<div id="pull_right">
    <div class="pull-right">
        {!! $res->links() !!}
    </div>
</div>



</body>


</html>